/*
 * @Author: youngqj youngqj@126.com
 * @Date: 2024-12-03 16:44:04
 * @LastEditors: youngqj youngqj@126.com
 * @LastEditTime: 2024-12-04 16:10:28
 * @FilePath: /mallSystem/model/member.go
 * @Description:
 *
 * Copyright © Zhejiang Xiaoqu Information Technology Co., Ltd, All Rights Reserved.
 */

package model

type MemberModel struct {
	ID       uint   `gorm:"primaryKey" json:"id"`
	Username string `gorm:"unique;not null" json:"username"`
	Passwd   string `json:"-"` // 不返回密码
	Nikname  string `json:"nikname"`
	Avatar   string `json:"avatar"`
	CreateAt int64  `json:"create_at"`
	IsValid  bool   `json:"is_valid"`
}

func (m *MemberModel) TableName() string {
	return "xq_member"
}
